package com.raedev.forms.view

import android.content.Context
import android.util.AttributeSet
import com.raedev.forms.listener.FormTextChangedListener


class FormAutoEditText(context: Context, attrs: AttributeSet?) :EmailAutoTextView(context, attrs) {

    internal var textChangedListener: FormTextChangedListener? = null

    override fun onTextChanged(
        text: CharSequence?,
        start: Int,
        lengthBefore: Int,
        lengthAfter: Int
    ) {
        super.onTextChanged(text, start, lengthBefore, lengthAfter)
        textChangedListener?.onAutoTextChanged(this, text.toString())
    }
}